package com.aididi.entity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @ClassName Student
 * @Description todo
 * @Author xuzexiang
 * @Data 2019/8/21 11:32
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "User")
@Api(value = "User",description = "用户实体")
public class User implements Serializable{
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @ApiModelProperty(value = "用户ID")
    private Long id;

    @Column(nullable = false)
    @ApiModelProperty(value = "用户名")
    private String username;

    @Column(nullable = false)
    @ApiModelProperty(value = "用户密码")
    private String password;

    @Column(nullable = false)
    @ApiModelProperty(value = "用户描述")
    private String description;


}
